import http from "@/common/http/request";
import {
  mscPanelListInterface,
  mscPanelAddInterface,
  mscPanelEditInterface,
} from "./mscPanel.interface";
// 面板管理-列表
export const $mscPanelList = (data: mscPanelListInterface) => {
  const $http = new http();
  return $http.get({
    url: '/system/mscPanel/list',
    data,
  })
}
// 面板管理-详情
export const $mscPanelDetail = (id: number) => {
  const $http = new http();
  return $http.get({
    url: `/system/mscPanel/${id}`,
  })
}
// 面板管理-新增
export const $mscPanelAdd = (data: mscPanelAddInterface) => {
  const $http = new http();
  return $http.post({
    url: `/system/mscPanel`,
    data,
  })
}
// 面板管理-编辑
export const $mscPanelEdit = (data: mscPanelEditInterface) => {
  const $http = new http();
  return $http.put({
    url: `/system/mscPanel`,
    data,
  })
}
// 面板管理-删除
export const $mscPanelDelete = (ids: number[]) => {
  const $http = new http();
  return $http.delete({
    url: `/system/mscPanel/${ids.join(',')}`,
  })
}